package com.dd.ljzapplication.view;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.View;

import com.emiage.ddutils.UIUtils;

/**
 * Created by LiJZ on 2017/1/13.
 */

public class QQView extends View {

	private float dragRadio = 0.0f;
	private float fixedMaxRadio = 0.0f;
	private float fixedMinRadio = 0.0f;

	public QQView(Context context) {
		super(context, null, 0);
	}

	public QQView(Context context, AttributeSet attrs) {
		super(context, attrs, 0);
	}

	public QQView(Context context, AttributeSet attrs, int defStyleAttr) {
		super(context, attrs, defStyleAttr);
		Paint mPaint = new Paint();
		mPaint.setColor(Color.RED);
		mPaint.setAntiAlias(true);

	}

	@Override
	protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
		super.onMeasure(widthMeasureSpec, heightMeasureSpec);
	}

	@Override
	protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
		super.onLayout(changed, left, top, right, bottom);
	}

	@Override
	protected void onDraw(Canvas canvas) {
		super.onDraw(canvas);

	}

	private void initRadio() {
		dragRadio = UIUtils.px2dip(10);
		fixedMaxRadio = UIUtils.px2dip(15);
		fixedMinRadio = UIUtils.px2dip(5);
	}

}
